<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
     <jsp:include page="../header.jsp" flush="true" />
       <div id = "body"> 
       <a href="addproduct">添加新产品</a>
       <table border="1">
          <tr>
          <th>产品名称</th>
          <th>售价</th>
          <th>库存量</th>
          <th>删除</th>
          </tr>
        <c:forEach items="${mineProducts}" var="product"> 
			<tr>
			<td>${product.productName}</td>
			<td>${product.salesPrice}元</td>
			<td>${product.quantity}件</td>
			<td><a href="${pageContext.request.contextPath}/product/del?productId=${product.productId}&categoryId=${product.category.categoryId}">删除</a></td>
			</tr>
		</c:forEach>	
		</table>
    	</div>
    	
</body>
</html>